@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: #f4f7f9;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 20px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

header {
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

header h1 {
    color: #2c3e50;
    margin-bottom: 5px;
}

header p {
    color: #7f8c8d;
    font-size: 1.1em;
}

.form-container {
    margin-bottom: 30px;
}

textarea#goal-input {
    width: 100%;
    height: 100px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
    resize: vertical;
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

select#domain-select {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1em;
}

button#generate-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

button#generate-btn:hover {
    background-color: #2980b9;
}

#loading-spinner {
    text-align: center;
    padding: 40px 0;
}

#loading-spinner.hidden {
    display: none;
}

.spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.plan-title {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-top: 20px;
}

.plan-summary {
    background-color: #ecf0f1;
    border-left: 5px solid #bdc3c7;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}

.stage {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 20px;
    transition: box-shadow 0.3s;
}

.stage:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.stage-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.stage-number {
    background-color: #3498db;
    color: white;
    min-width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
}

.stage-title {
    font-size: 1.2em;
    font-weight: 500;
    color: #2c3e50;
}

.stage-description, .stage-reasoning {
    margin-bottom: 15px;
    color: #555;
}

.recommended-items h4 {
    margin-bottom: 10px;
    color: #333;
}

.recommended-items ul {
    list-style-type: '✅';
    padding-left: 25px;
}

.recommended-items li {
    padding: 5px 0;
}

.error-message {
    color: #e74c3c;
    background-color: #fbeae5;
    border: 1px solid #e74c3c;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}
